const app = getApp()
Component({
  options: {
    addGlobalClass: true
  },
  properties: {
    title: {
      type: String,
      value: '首页'
    },
    isReturn: {
      type: Boolean,
      value: false
    },
    goHome: {
      type: Boolean,
      value: false
    },
    navBgc: {
      type: String,
      value: "#FFFFFF"
    },
    navImg: {
      type: String,
      value: ""
    }
  },
  data: {
    navBarHeight: app.globalData.navBarHeight,
    menuRight: app.globalData.menuRight,
    menuTop: app.globalData.menuTop,
    menuHeight: app.globalData.menuHeight,
  },
  attached: function () { },
  methods: {
    returnLastPage() {
      console.log('ppp')
      wx.navigateBack({
        delta: 1
      });
    },
    goHome() {
      wx.switchTab({
        url: '/pages/index/index'
      })
    }
  }
})
